includeTargets << grailsScript("Init")

target(stopsimplesolr: "Stop Solr Jetty Instance") {
	def solrHome = "${grails.util.BuildSettingsHolder.getSettings().projectWorkDir}/solr-home"

	println "Stopping Solr..."
	java ( jar:"${solrHome}/start.jar", dir: "${solrHome}", fork:true) {
    jvmarg(value:"-DSTOP.PORT=8079")
		jvmarg(value:"-DSTOP.KEY=secret")
		arg(value: "--stop")
	}			
}

setDefaultTarget(stopsimplesolr)
